<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        //do while 至少执行一次循环体
        // var i = 1;
        // do {
        //     console.log('oooo');
        //     i++;
        // } while (i <= 10) 
        var age = 1;
        do {
            console.log('这个人今年' + age + '岁了');
            age++;
        } while (age <= 100)
        do {
            var message = prompt('你爱我吗？');
        } while (message !== '我爱你')
        alert('我也爱你呀');
    </script>
</head>

<body>

</body>

</html>